package org.edu.modules.liancategory.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import org.jeecgframework.poi.excel.annotation.Excel;

@TableName("ve_cuz_course_category")
@ApiModel(value="ve_cuz_course_category对象", description="课程分类关联表")
public class VeCuzCourseCategory
        implements Serializable
{
    private static final long serialVersionUID = 1L;
    @TableId(type=IdType.AUTO)
    @ApiModelProperty("主键、自动增长")
    private Integer id;
    @Excel(name="课程id", width=15.0D)
    @ApiModelProperty("课程id")
    private Integer courseid;
    @Excel(name="分类id", width=15.0D)
    @ApiModelProperty("分类id")
    private Integer cateid;
    @Excel(name="多租户id", width=15.0D)
    @ApiModelProperty("多租户id")
    private Integer placeId;

    public VeCuzCourseCategory setPlaceId(Integer placeId)
    {
        this.placeId = placeId;return this;
    }

    public VeCuzCourseCategory setCourseid(Integer courseid)
    {
        this.courseid = courseid;return this;
    }

    public String toString()
    {
        return "VeCuzCourseCategory(id=" + getId() + ", courseid=" + getCourseid() + ", cateid=" + getCateid() + ", placeId=" + getPlaceId() + ")";
    }

    public VeCuzCourseCategory setId(Integer id)
    {
        this.id = id;return this;
    }

    public VeCuzCourseCategory setCateid(Integer cateid)
    {
        this.cateid = cateid;return this;
    }

    public int hashCode()
    {
        int PRIME = 59;int result = 1;Object $id = getId();result = result * 59 + ($id == null ? 43 : $id.hashCode());Object $courseid = getCourseid();result = result * 59 + ($courseid == null ? 43 : $courseid.hashCode());Object $cateid = getCateid();result = result * 59 + ($cateid == null ? 43 : $cateid.hashCode());Object $placeId = getPlaceId();result = result * 59 + ($placeId == null ? 43 : $placeId.hashCode());return result;
    }

    public boolean equals(Object o)
    {
        if (o == this) {
            return true;
        }
        if (!(o instanceof VeCuzCourseCategory)) {
            return false;
        }
        VeCuzCourseCategory other = (VeCuzCourseCategory)o;
        if (!other.canEqual(this)) {
            return false;
        }
        Object this$id = getId();Object other$id = other.getId();
        if (this$id == null ? other$id != null : !this$id.equals(other$id)) {
            return false;
        }
        Object this$courseid = getCourseid();Object other$courseid = other.getCourseid();
        if (this$courseid == null ? other$courseid != null : !this$courseid.equals(other$courseid)) {
            return false;
        }
        Object this$cateid = getCateid();Object other$cateid = other.getCateid();
        if (this$cateid == null ? other$cateid != null : !this$cateid.equals(other$cateid)) {
            return false;
        }
        Object this$placeId = getPlaceId();Object other$placeId = other.getPlaceId();return this$placeId == null ? other$placeId == null : this$placeId.equals(other$placeId);
    }

    protected boolean canEqual(Object other)
    {
        return other instanceof VeCuzCourseCategory;
    }

    public Integer getId()
    {
        return this.id;
    }

    public Integer getCourseid()
    {
        return this.courseid;
    }

    public Integer getCateid()
    {
        return this.cateid;
    }

    public Integer getPlaceId()
    {
        return this.placeId;
    }
}
